<script setup>
import router from "@/router";

const backToMainPage = () => {
  router.push('/');
}
</script>

<template>
  <div class="main-body">
    <div class="passage-title">
      <el-result icon="error" title="啊这...页面找不到了" sub-title="请检查URL或点击按钮返回主页">
        <template #extra>
          <el-button type="warning" round size="large" @click="backToMainPage">返回主页</el-button>
        </template>
      </el-result>
    </div>
  </div>
</template>